package controle.gui.add;

import java.awt.EventQueue;

import javax.swing.JInternalFrame;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JTextField;
import javax.swing.JLabel;
import com.toedter.calendar.JDateChooser;
import javax.swing.JTabbedPane;
import javax.swing.JButton;
import javax.swing.SwingConstants;
import java.awt.Color;
import java.awt.Font;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.JFormattedTextField;

public class AddSocio extends JInternalFrame {
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTable table;
	private JTextField textField_4;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					AddSocio frame = new AddSocio();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public AddSocio() {
		setBounds(100, 100, 840, 378);
		
		JPanel panel = new JPanel();
		getContentPane().add(panel, BorderLayout.CENTER);
		panel.setLayout(null);
		
		textField = new JTextField();
		textField.setBounds(12, 28, 163, 23);
		panel.add(textField);
		textField.setColumns(10);
		
		JLabel lblCnpj = new JLabel("Cnpj");
		lblCnpj.setBounds(12, 12, 70, 14);
		panel.add(lblCnpj);
		
		textField_1 = new JTextField();
		textField_1.setBounds(187, 28, 337, 23);
		panel.add(textField_1);
		textField_1.setColumns(10);
		
		JLabel lblRazoScial = new JLabel("Razão Sócial");
		lblRazoScial.setBounds(188, 12, 144, 14);
		panel.add(lblRazoScial);
		
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		tabbedPane.setBounds(12, 63, 806, 80);
		panel.add(tabbedPane);
		
		JPanel panel_1 = new JPanel();
		tabbedPane.addTab("New tab", null, panel_1, null);
		panel_1.setLayout(null);
		
		textField_2 = new JTextField();
		textField_2.setBounds(12, 27, 144, 23);
		panel_1.add(textField_2);
		textField_2.setColumns(10);
		
		JLabel lblCpf = new JLabel("Cpf");
		lblCpf.setBounds(12, 12, 70, 14);
		panel_1.add(lblCpf);
		
		textField_3 = new JTextField();
		textField_3.setBounds(160, 27, 319, 23);
		panel_1.add(textField_3);
		textField_3.setColumns(10);
		
		JLabel lblNome = new JLabel("Nome");
		lblNome.setBounds(160, 12, 70, 14);
		panel_1.add(lblNome);
		
		JDateChooser dateChooser = new JDateChooser();
		dateChooser.setBounds(559, 27, 105, 23);
		panel_1.add(dateChooser);
		
		JLabel lblInicio = new JLabel("Entrada");
		lblInicio.setBounds(559, 12, 70, 14);
		panel_1.add(lblInicio);
		
		JDateChooser dateChooser_1 = new JDateChooser();
		dateChooser_1.setBounds(676, 27, 113, 23);
		panel_1.add(dateChooser_1);
		
		JLabel lblSaida = new JLabel("Saida");
		lblSaida.setBounds(676, 12, 70, 14);
		panel_1.add(lblSaida);
		
		JButton button = new JButton("+");
		button.setFont(new Font("Dialog", Font.BOLD, 12));
		button.setForeground(Color.RED);
		button.setToolTipText("Adicionar Socio");
		button.setBounds(491, 26, 45, 24);
		panel_1.add(button);
		button.setHorizontalAlignment(SwingConstants.TRAILING);
		
		JPanel panel_2 = new JPanel();
		tabbedPane.addTab("New tab", null, panel_2, null);
		panel_2.setLayout(null);
		
		JLabel lblCnpj_1 = new JLabel("Cnpj");
		lblCnpj_1.setBounds(12, 10, 70, 14);
		panel_2.add(lblCnpj_1);
		
		JFormattedTextField formattedTextField = new JFormattedTextField();
		formattedTextField.setBounds(12, 24, 150, 23);
		panel_2.add(formattedTextField);
		
		JLabel lblRazoScial_1 = new JLabel("Razão Sócial");
		lblRazoScial_1.setBounds(173, 10, 115, 12);
		panel_2.add(lblRazoScial_1);
		
		textField_4 = new JTextField();
		textField_4.setBounds(174, 24, 345, 23);
		panel_2.add(textField_4);
		textField_4.setColumns(10);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(823, 155, -808, 141);
		panel.add(scrollPane);
		
		table = new JTable();
		table.setModel(new DefaultTableModel(
			new Object[][] {
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
			},
			new String[] {
				"New column", "New column", "New column", "New column"
			}
		));
		table.setBounds(500, 217, 1, 1);
		scrollPane.add(table);

	}
}
